package blackitheima1.SystemTest;

public class SystemDemo1 {
    //返回当前时间,判断for循环代码运行时间
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 100; i++) {
            if(i%10==0){
                System.out.println();
            }else{
                System.out.print(i+" ");
            }
        }
        System.out.println();
        long end = System.currentTimeMillis();
        System.out.println("运行毫秒值:"+(end-start));
    }

}
